package com.system.elastic;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;


@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
////扫描Dao接口
@EnableElasticsearchRepositories(basePackages = {"com.system.elastic.mapper"})
//Feign接口
@EnableFeignClients(basePackages = {"com.system.elastic.goods.feign"})
public class ElasticApplication {
    public static void main(String[] args) {
        SpringApplication.run(ElasticApplication.class, args);

    }
}
